﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Knjiga
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void LoginKlik(object sender, EventArgs e)
        {
            string Korisnik = txtUsername.Text;
            string Lozinka = txtLozinka.Text;

            if ((Korisnik == "aleksa") & (Lozinka == "tajna"))
            {
                Session["Korisnik"] = Korisnik;
                HttpBrowserCapabilities bc = Request.Browser;
                if (bc.Type == "Firefox7")
                { Response.Redirect("OmiljeniAuto.aspx");
                    // Response.Write("Uspesno ste logovani" + Korisnik);
                }
               

            }
            else { Response.Write("Nije pronadjena Vasa kombinacija" + Korisnik + "i" + Lozinka); }
        }
    }
}